package com.medata.repository;

import com.medata.dataObject.Logdetail;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.sql.Timestamp;

public interface LogdetailRepository extends JpaRepository<Logdetail,Integer> {
    Page<Logdetail> findByLogtimeBetween(Timestamp startTime, Timestamp endTime, Pageable pageable);

    void deleteByLogtimeBetween(Timestamp startTime, Timestamp endTime);
}

